package cn.smile.bean.entity.core;

import cn.smile.commons.domain.BaseDomain;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.time.LocalDateTime;

/**
 * 外部请求记录
 *
 * @author smile-jt
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("req_without_info")
public class ReqWithoutInfo extends BaseDomain {
    @Serial
    private static final long serialVersionUID = -7045396195092301889L;
    /**
     * 请求url
     */
    private String url;

    /**
     * 请求头
     */
    private String reqHeader;

    /**
     * 请求对象
     */
    private String reqBody;

    /**
     * 请求时间
     */
    private LocalDateTime reqTime;

    /**
     * 响应标记(0-false, 1-true)
     */
    private Boolean respFlag;

    /**
     * 响应结果
     */
    private String respResult;

    /**
     * 响应时间
     */
    private LocalDateTime respTime;
}